import { loginApi } from '@/api'

export const login = ({ userName, password }: Login) => {
  return loginApi({ userName, password }).then(res => res.data)
}
